From d491d819d3994032360ed5f1117ab71c1a6a765a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 9 Jul 2015 18:16:25 +0100 Subject: [PATCH] libxl: event tests: test_timedereg: Fix rc handling In 31c836f4 "libxl: events: Permit timeouts to signal ao abort", timeout callbacks take an extra rc argument. In that patch the wrong assertion is made about the rc in test_timedereg's `occurs' callback. Fix this to make the test pass again. Signed-off-by: Ian Jackson Acked-by: Wei Liu --- tools/libxl/libxl_test_timedereg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_test_timedereg.c b/tools/libxl/libxl_test_timedereg.c index c464663487..a567db6839 100644 --- a/tools/libxl/libxl_test_timedereg.c +++ b/tools/libxl/libxl_test_timedereg.c @@ -67,7 +67,7 @@ static void occurs(libxl__egc *egc, libxl__ev_time *ev, int off = ev - &et[0][0]; LOG(DEBUG,"occurs[%d][%d] seq=%d rc=%d", off/NTIMES, off%NTIMES, seq, rc); - assert(!rc); + assert(rc == ERROR_TIMEDOUT); switch (seq) { case 0: -- 2.30.2